from rest_framework.routers import DefaultRouter
from . import views

urlpatterns = [

]


# 创建路由对象
router = DefaultRouter()
# 1.该视图集的路由前缀  2.视图集  3.路由名称的前缀
router.register(r'areas', views.AreasViewSet, base_name='areas')

urlpatterns += router.urls
